import {get,post} from '../../utils/request' 
import { DataInfo } from './type';

//添加
export const add=(data:DataInfo)=> post("administratorrole/add",data)

//单条删除
export const del=(id:number)=>get("administratorrole/delete",{id})

//获取权限功能列表
export const getMenu=(roleid:any)=> get("menu/list",{roleid})

export const getList=(data:any)=> get("administratorrole/list",data)


